#if !defined(AFX_SETTINGSDIALOG_H__B43B22E6_3AD7_4095_AC66_395CD9B43978__INCLUDED_)
#define AFX_SETTINGSDIALOG_H__B43B22E6_3AD7_4095_AC66_395CD9B43978__INCLUDED_

#include "..\IniFile.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SettingsDialog.h : header file
//

#include "resource.h"
#include "..\Colorbtn.h"
#include "ReminderDialog.h"	// Added by ClassView

#define KEY_TYPE "type"




#define RM_GAP_DAY		0
#define RM_GAP_MON		1
#define RM_GAP_WEEK		2

#define RM_ISCHECKED(ID) (((CButton*)(GetDlgItem(ID)))->GetCheck()==1)
#define RM_SETCHEKED(ID) (((CButton*)(GetDlgItem(ID)))->SetCheck(1))

/////////////////////////////////////////////////////////////////////////////
// CSettingsDialog dialog

class CSettingsDialog : public CDialog
{
// Construction
public:

	void UpdateCombo(BOOL isSetOnly);
	void SetDefaultTypeValues();
	LOGFONT m_lf;
	COLORREF m_BG[TYPE_MAX];
	COLORREF m_FG[TYPE_MAX];
	BOOL m_isTransBG[TYPE_MAX];
	BOOL m_isCalCol[TYPE_MAX];
	BOOL m_isMark[TYPE_MAX];

	void INI_Write();
	void FillCombo();
	void INI_Read();
	int m_OldColorSel;
	CString m_AppPath;
	int m_gaptype;

	CIniFile m_ini;
	CSettingsDialog(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSettingsDialog)
	enum { IDD = IDD_DIALOG_SETTINGS };
	CComboBox	m_combColor;
	CColorBtn	m_buttFG;
	CColorBtn	m_buttBG;
	BOOL	m_isTransBGcheck;
	CString	m_DelOld;
	CString	m_Notice;
	CString	m_FileName;
	BOOL	m_isCalColcheck;
	CString	m_gapfrom;
	CString	m_gapto;
	BOOL	m_isshowold;
	BOOL	m_isMarkcheck;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSettingsDialog)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CString LoadString(UINT id);
	// Generated message map functions
	//{{AFX_MSG(CSettingsDialog)
	afx_msg void OnCheckTransBG();
	afx_msg void OnSelchangeComboColor();
	afx_msg void OnButtonReRead();
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonRemBrowse();
	afx_msg void OnButtonFont();
	virtual void OnOK();
	afx_msg void OnButtonEdit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SETTINGSDIALOG_H__B43B22E6_3AD7_4095_AC66_395CD9B43978__INCLUDED_)

